/**
 * Created by wxy on 2017/3/15.
 */

import moment from 'moment';


export default class LoggerModel {

  key;
  id;
  callTime;
  indexName;
  indexNum;
  indexResult;
  meaningCode;
  partnerCode;

  arguments;
  reasonCode;
  bizId;

  constructor(modelData) {
    this.id = this.key = modelData.response.callNumber; //调用编号
    this.callTime = moment(modelData.request.requestTime).format('YYYY-MM-DD HH:mm:ss')
    this.indexName = modelData.request.generalIndicatrixName;
    this.indexNum = modelData.request.partnerIndicatrixId;
    this.indexResult = modelData.response.result;
    this.meaningCode = modelData.request.meaningCode;
    this.partnerCode = modelData.request.partnerCode;

    this.arguments = modelData.request.arguments;
    this.reasonCode = modelData.response.reasonCode;
    this.bizId = modelData.request.bizId;
  }
}